package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2021/11/24 09:58
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public BaseRespVo hello() {
        System.out.println("Hello Handler方法的执行");
        return BaseRespVo.ok(null);
    }

    @RequestMapping("goodbye")
    public BaseRespVo goodbye() {
        System.out.println("Goodbye Handler方法的执行");
        return BaseRespVo.ok(null);
    }
    @RequestMapping("goodbye/songge")
    public BaseRespVo goodbyeSongge() {
        System.out.println("GoodbyeSongge Handler方法的执行");
        return BaseRespVo.ok(null);
    }
}
